<?php
class Access_Model_Roles extends Zend_Db_Table_Abstract
{
    public function get()
    {
        try {

            $this->_db->getConnection();
            
            $query = $this->_db
                          ->select()
                          ->from('access_roles',
                                 array(
                                     'roles_name',
                                     'roles_id',
                                 )
                            );
            $roles = $this->_db->fetchAll($query);
            $newRoles = array();
            foreach ($roles as $role) {
                $newRoles[$role['roles_id']] = $role['roles_name'];
            }
            return $newRoles;
        } catch (Exception $e) {

            return FALSE;
        }
    }
}